<?php
class Raxiv_Plugin_Layout extends Zend_Controller_Plugin_Abstract
{

    public function preDispatch(Zend_Controller_Request_Abstract $request) {
		$module = strtolower($request->getModuleName());
		$layout = Zend_Layout::getMvcInstance();
		$layout->setLayout($module);
		$layout->setLayoutPath('../application/modules/'.$module.'/layouts');
		$layout->getView()->addHelperPath('Raxiv/View/Helper','Raxiv_View_Helper');
	 }
}